package com.ylbh.modules.sign.mapper;


import com.ylbh.common.pojo.sign.dto.SignPrizeDTO;
import com.ylbh.common.pojo.sign.vo.ShoppingSigninPrizeVO;
import com.ylbh.modules.sign.entity.ShoppingSigninPrize;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 活动信息列表
 * @author wjc
 * @date 2019-011-06 14:22:40
 */
@Mapper
@Repository
public interface ShoppingSignPrizeMapper {

    /**
     * 添加活动信息
     * @param shoppingSigninPrize
     * @return
     */
    int insertPrizeInfo(ShoppingSigninPrize shoppingSigninPrize);

     /**
     * 获取活动信息ById
     * @param id
     * @return
     */
     ShoppingSigninPrizeVO selectPrizeInfoById(Integer id);

    /**
     * 根据ID修改活动信息
     * @param signPrizeDTO
     * @return
     */
    void updatePrizeInfoById(SignPrizeDTO signPrizeDTO);

    int queryPrizeCountById(Integer id);

    void deleteSignPrizeByTurnTableId(List<String> asList);

    void updatePrizeDeleteStatusById(@Param(value = "id") Integer id);
}
